import sys
sys.path.append('/Users/paolopuggioni/DTC/PhDcoding/MC Project/network_model/myfunctions')
import fast_network_analysis as fna
import netclass as nc
import net_analysis as na

import shelve
import numpy
from scipy import *
from brian import *
import time


pathfolder= '../datasave/'
filename='2013-4-15-12-12'

spdict=na.loadSpikes(filename,pathfolder)
#spdict= na.loadResults(filename,pathfolder)

vtrace,getrace,gitrace,time = na.loadMonitors(filename,pathfolder)

corr_ee,corr_ei,corr_ii=na.correlationcalc(spdict['spikes'],50)
